#include<iostream>
using namespace std;
int main(){
 double f;
 cin>>f;
 cout.precision(5);
 cout<<fixed;
 cout<<(f-32)*5/9; 
}